﻿using Huirui.Cavan.Application.MainBoundedContext.SystemModule;
using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using Huirui.Cavan.Domain.Seedwork;

using Huirui.Cavan.Presentation.Seedwork;
using Huirui.Cavan.Presentation.ViewModel.SystemModule;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Huirui.Cavan.Presentation.Controller.SystemModule
{
    public class ProjectController : EntityController<Project, string, ProjectSearch, IProjectViewModel, IProjectAppService>, IProjectController
    {
        public override string ControllerName
        {
            get { return ControllerConst.PROJECT; }
        }

        public override bool UseDenied
        {
            get { return true; }
        }

        [ActionName(ActionConst.ADD)]
        [HttpGet]
        public ActionResult AddProject()
        {
            return View();
        }

        [ActionName(ActionConst.ADD)]
        [HttpPost]
        public JsonResult AddProject(ProjectViewModel model)
        {
            BoolResult jsonResult = new BoolResult();

            return Json(jsonResult, "application/json");
        }
    }
}
